import React, {Component} from 'react'
import {
  View,
  StyleSheet,
  Text,
} from 'react-native'
import NavigationUtil from '../util/navigator-util'

export default class extends Component {

  componentDidMount() {
    this.timer = setTimeout(() => {
      NavigationUtil.resetHomePage({
        navigation: this.props.navigation,
        selectedTab: 'tb_polular'
      })
    },500)
  }
  componentWillUnmount() {
    this.timer && clearTimeout(this.timer)
  }
  render() {
    return <View style={styles.container}>
      <Text>welcome</Text>
    </View>
  }
}

const styles = StyleSheet.create({
  container: {flex: 1}
})
